<?
require_once 'Mysql.php';

class roles extends MySQL
{
	function __construct($rol='')
	{
		$this->rol=$rol;
	}
	
	public function verRoles ()
	{
		$array=array();
		$this->conectar();
		$query=$this->consulta("select * from perfil order by idperfil");
		while($datos=$this->fetch_array())
		{
			$array[]=$datos;
		}
		$this->desconectar();
		return $array;
	}
}

?>